package com.assignwork.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import org.springblade.core.tool.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * TrainLoadLog
 */
@Data
@TableName("train_load_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TrainLoadLog对象", description = "火车装卸日志")
public class TrainLoadLog extends BaseEntity {

    /** 作业日 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "作业日")
    private LocalDate workDate;


    @ApiModelProperty(value = "开始时间")
    private String startTime1;
    @ApiModelProperty(value = "结束时间")
    private String endTime1;
    
    /** 班次 */
    @ApiModelProperty(value = "班次")
    private String timeSpace;
    
    /** 作业对组 */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "作业对组")
    private Long corpId;
    
    /** 装卸类型 */
    @ApiModelProperty(value = "装卸类型")
    private String loadType;
    
    /** 货类 */
    @ApiModelProperty(value = "货类")
    private String cargoType;
    
    /** 作业状态 */
    @ApiModelProperty(value = "作业状态")
    private String workStatus;
    
    /** 车厢类型 */
    @ApiModelProperty(value = "车厢类型")
    private String coachType;
    
    /** 车厢数 */
    @ApiModelProperty(value = "车厢数")
    private Integer coachCount;
    
    /** 车厢单吨 */
    @ApiModelProperty(value = "车厢单吨")
    private BigDecimal coachTon;
    
    /** 重吨 */
    @ApiModelProperty(value = "重吨")
    private BigDecimal totalTon;
    
    /** 排车时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "排车时间")
    private LocalDateTime arrangeTime;
    
    /** 道线 */
    @ApiModelProperty(value = "道线")
    private String workLine;

    private String remark;

    private Integer isCheck;

    private String updateUserName;

    private String modifiedUser;
    
    /** 开始时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;
    
    /** 结束时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    
}